﻿var reportResult = function (strMessage) {
    Ext.net.Notification.show({
        iconCls: 'icon-information',
        hideDelay: 2000,
        pinEvent: 'click',
        html: strMessage,
        title: 'Thông báo'
    });
    applyFilter();
}

var onKeyUp = function () {
    var me = this,
                v = me.getValue(),
                field;

    if (me.startDateField) {
        field = Ext.getCmp(me.startDateField);
        field.setMaxValue(v);
        me.dateRangeMax = v;
    } else if (me.endDateField) {
        field = Ext.getCmp(me.endDateField);
        field.setMinValue(v);
        me.dateRangeMin = v;
    }

    field.validate();
};